#!/usr/bin/python3.8
# -*- coding:UTF-8 -*-
import hashlib
import random
import re
from datetime import datetime, timedelta
import logging
import os
import sys
import threading
import time
import json
from hashlib import md5
from queue import Queue

import requests

BASH_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(BASH_DIR)
from lxml import etree, html
from pymongo import UpdateOne, ReturnDocument

from base_spider import BaseSpider
from conf.conf_util import title_strip, upload_image_delete_pic2, \
    sha256_all_text, clear_html, parse_xpath, judge_xpath
from conf.database import DATABASE
from conf.dber import MongoDBer
from conf.logging_debug import MyLogging


# 批量更新
class guangdongshengshuiwujuW(BaseSpider):
    def __init__(self, db_name):
        super(guangdongshengshuiwujuW, self).__init__()
        self.headers = {
            # "Cookie": "JSESSIONID=325F32A63F535B0ECC371B5881FAAE44; jfe_pin=edb5223c; jfe_ts=1667356652.668; jfe_sn=cj4oWRHJrJdcLhbDnSWPd5qP5hU=",
            'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
        }
        self.params_queue = Queue(maxsize=10)  # 筛选队列
        self.detail_queue = Queue(maxsize=100)  # 数据队列
        self.index_status = True  # 索引是否添加
        self.screen_queue = Queue(maxsize=100)  # url队列  用来截图
        self.local = threading.local()
        self.db_m = MongoDBer(DATABASE[db_name])  # mongodb 库连接对象
        self.db_m1 = MongoDBer(DATABASE['guxulong'])  # mongodb 库连接对象
        # self.db_m1 = MongoDBer(DATABASE['bendi'])  # mongodb 库连接对象
        # self.db_m1 = MongoDBer(DATABASE['test_gu'])  # mongodb 库连接对象
        self.guangdongshengshuiwuju_param = self.db_m["guangdongshengshuiwuju_param"]
        self.guangdongshengshuiwuju_param_err = self.db_m["guangdongshengshuiwuju_param_err"]
        self.guangdongshengshuiwuju = self.db_m1["xinyongpingjia_data_detail_all"]
        self.xpaths = ['//div[@class="detail-content"]']
        # 日志
        self.m = MyLogging(self.__class__.__name__, debug_level=logging.INFO, write_level=logging.INFO).logging
        self.create_indexes()  # 创建表索引
        self.myself_ip = self.get_myself_ip()  # 获得本机ip

    def get_all_number_page(self, res, param_result):
        """
        获得总页数
        """
        res_ = json.loads(res)
        all_number_page = res_["data"]["total"] / 20
        # if all_number_total_ != []:
        #     all_number_page = all_number_total_[0].split('/')[1].replace('页', '')
        # else:
        #     all_number_page = 1
        return int(all_number_page)

    def parse_data(self, param_res, param_result):
        """
        解析列表页数据
        """
        # 增量标志位
        day_end_flag = True
        title_list = []
        originalurl_list = []
        publishdate_list = []
        ifbunit_list = []
        param_res_xpath = json.loads(param_res)
        param_res_xpath_list = param_res_xpath['data']['rows']
        for result_ in param_res_xpath_list:
            originalurl_ = result_.get('piId', '')
            if originalurl_ != '':
                originalurl = f'http://www.creditenergy.gov.cn/publicity/punish/{originalurl_}?ci=6ded518b2cac43a28a65383d81296f41#step-1'
            else:
                originalurl = ''
            originalurl_list.append(originalurl)
            title_ = result_.get('enterName', "")
            if title_ != '':
                title = title_
            else:
                title = ''
            print(title)
            title_list.append(title)
            ifbunit_bianhao = result_.get('aaa', '')
            if ifbunit_bianhao != '':
                company_bianhao = ifbunit_bianhao[0].strip().replace('发布人：', '')
            else:
                company_bianhao = ''
            ifbunit_list.append(company_bianhao)

            publishdate_ = result_.get('punishTime', '')
            if publishdate_ != '':
                publishdate_1 = publishdate_[0].strip().replace('发布日期', '').replace('年', '-').replace('月',
                                                                                                           '-').replace(
                    '日', '')

            else:
                publishdate_1 = '1970-01-01'
            try:
                publishdate112 = datetime.strptime(publishdate_1, "%Y-%m-%d")
            except:
                publishdate112 = datetime.strptime('1970-01-01', "%Y-%m-%d")
            if publishdate112 == datetime.strptime('1970-01-01', "%Y-%m-%d"):
                publishdate = ''
            else:
                publishdate = publishdate112
            publishdate_list.append(publishdate)
        return title_list, originalurl_list, publishdate_list, day_end_flag, ifbunit_list

    def remove_js_style(self, response):
        '''
        删除HTML中的js和css
        '''
        try:
            encoding_ = 'utf-8'
            tree = etree.HTML(response)
            ele = tree.xpath("//script | //noscript")
            for e in ele:
                e.getparent().remove(e)
            ele2 = tree.xpath('//style | //nostyle')
            for e2 in ele2:
                e2.getparent().remove(e2)
            Html = html.tostring(tree, encoding=encoding_).decode(encoding_)
            return Html
        except Exception as err:
            print('remove_js_style报错是%s ' % err)
            return False

    def create_indexes(self):
        if self.index_status:
            temp_url_index = True
            temp_status_index = True
            update_time_index = True
            for index in self.guangdongshengshuiwuju.list_indexes():
                if "originalurl" in index["name"]:
                    temp_url_index = False
                    continue
                if "status" in index["name"]:
                    temp_status_index = False
                    continue
                if "update_time" in index["name"]:
                    update_time_index = False

            if temp_url_index:
                self.guangdongshengshuiwuju.create_index([("originalurl", 1), ("html_id", 1)], unique=True,
                                                         background=True)
            if temp_status_index:
                self.guangdongshengshuiwuju.create_index([("status", 1), ("sourceplatform", 1)], background=True)
            if update_time_index:
                self.guangdongshengshuiwuju.create_index([("utime", 1)], background=True)

            self.index_status = False

    def md5_url(self, url):
        m = md5()
        m.update(url.encode())
        return m.hexdigest()

    def save_data(self, title_list, originalurl_list, publishdate_list, page, param_result, ifbunit_list):
        """
        存储数据
        """
        for title, originalurl, publishdate, ifbunit in zip(
                title_list, originalurl_list, publishdate_list, ifbunit_list):

            ctime = datetime.now()
            if originalurl != '':
                self.insert_data('全国', '', '', title, publishdate, '信用能源', originalurl, ctime)
            else:
                print('无')

    def insert_data(self, province, city, county, title, publishdate, sourceplatform, originalurl, ctime):
        """
        插入数据
        """
        self.local.insert_data_list.append(UpdateOne(
            {"originalurl": originalurl}, {
                "$set": {
                    "province": province, "city": city, "county": county, "title": title_strip(title),
                    "publishdate": publishdate,
                    "sourceplatform": sourceplatform,
                    "originalurl": originalurl,
                    "ctime": ctime,
                    "status": 0,
                    'behavior_type': '行政处罚',
                    "utime": ctime
                }
            }, upsert=True
        ))

        if len(self.local.insert_data_list) >= 100:
            try:
                self.guangdongshengshuiwuju.bulk_write(self.local.insert_data_list)
            except Exception as e:
                self.m.error("插入失败%s条数据" % len(self.local.insert_data_list), e)
            else:
                self.m.info("插入成功%s条数据" % len(self.local.insert_data_list))
            finally:
                self.local.insert_data_list.clear()

    def parse_xunhuan(self, param_result):
        """
        翻页获取列表页数据
        """
        # 查询day_flag是否为True
        if not param_result.get('day_flag'):
            if (datetime.now() - param_result.get('all_start_time', datetime.now() - timedelta(days=2))).days > 2:
                self.guangdongshengshuiwuju_param.update_one({'_id': param_result['_id']},
                                                             {'$set': {'all_start_time': datetime.now()}})
                page = 1
            else:
                page = param_result.get('page', 1)
        else:
            page = 1
        while True:
            headers = {
                "Accept": "*/*",
                "Accept-Language": "zh-CN,zh;q=0.9",
                "Connection": "keep-alive",
                "Referer": "http://www.creditenergy.gov.cn/publicity",
                "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
                "X-Requested-With": "XMLHttpRequest"
            }
            url = f"http://www.creditenergy.gov.cn/publicity/page?name=&code=&type=punish&page={str(page)}"
            time.sleep(1)
            param_res = requests.get(url, headers=headers, verify=False).content.decode('utf-8')
            all_number_page = self.get_all_number_page(param_res, param_result)
            # all_number_page = 1180
            print('总页数是%s' % all_number_page)
            # 判断循环结束
            if page > int(all_number_page):
                print('抓取结束')
                break
            if param_res:
                title_list, originalurl_list, publishdate_list, day_end_flag, ifbunit_list = self.parse_data(
                    param_res, param_result)

                self.save_data(title_list, originalurl_list, publishdate_list, page, param_result, ifbunit_list)
                self.m.info('第%s页获取数据成功' % (str(page)))
            else:
                print('没有数据')

            page = page + 1
        self.m.info('获取数据完毕')

    def get_menu_producer_consumer(self):
        """
        获取列表页数据流程
        """
        self.local.insert_data_list = []  # 批量插入
        param_result = {}
        self.parse_xunhuan(param_result)

    def judge_xpath_err(self, detail_result):

        image_status = 0
        xpath_err = 0
        return image_status, xpath_err

    def get_all_text(self, res1, test_xpath):
        rules1 = re.compile("[\u4e00-\u9fa5]")
        res_html = etree.HTML(res1)
        res_text = "".join(res_html.xpath(test_xpath))
        if res_text:
            all_text = "".join(rules1.findall(res_text))
            if all_text and len(all_text) > 20:
                html_id = sha256_all_text(all_text)
                return html_id, all_text
        return None, ''

    def sha256_all_text(self, all_text):
        """
        sha256加密alltext
        """
        sha = hashlib.sha256()
        sha.update(all_text.encode())
        return sha.hexdigest()

    def judge_xpath(self, res, xpaths):
        """
        判断xpath
        """
        for xpath in xpaths:
            temp = parse_xpath(res, xpath)
            if temp:
                return xpath
        return ""

    def get_detail_consumer(self):
        """
        更新html字段和二级标题字段和更新时间
        """
        self.local.get_detail_consumer_list = []
        while True:
            detail_result = self.detail_queue.get()
            # time.sleep(random.randint(2, 4))
            if not detail_result:
                try:
                    self.guangdongshengshuiwuju.bulk_write(self.local.get_detail_consumer_list)
                    self.m.info("get_detail_consumer结束")
                except Exception as e:
                    self.m.error("更新失败%s" % e)
                else:
                    self.m.debug("更新成功%s条" % len(self.local.get_detail_consumer_list))

                break
            else:
                headers = {
                    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
                    "Accept-Language": "zh-CN,zh;q=0.9",
                    "Cache-Control": "max-age=0",
                    "Connection": "keep-alive",
                    "Upgrade-Insecure-Requests": "1",
                    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
                }
                url = detail_result['originalurl']
                detail_res_ = requests.get(url, headers=headers, verify=False).content.decode('utf-8')
                if detail_res_:
                    xpath = judge_xpath(detail_res_, self.xpaths)
                    if xpath != '':
                        image_status, xpath_err = self.judge_xpath_err(detail_result)
                    else:
                        image_status, xpath_err = 2, 1
                        # raise Exception('xpath_err url是%s' % detail_result['originalurl'])

                    html_id, detail_text = self.get_all_text(detail_res_, xpath + "//text()")
                    print('html_id是' + html_id)
                    if html_id:
                        # 判断该条数据在数据库中是否存在
                        detail_res = self.guangdongshengshuiwuju.find_one(
                            {"originalurl": detail_result['originalurl'], "html_id": html_id})
                        if not detail_res:
                            self.local.get_detail_consumer_list.append(UpdateOne(
                                {"_id": detail_result["_id"]},
                                {"$set": {
                                    "html": clear_html(detail_res_),
                                    "html_id": html_id,
                                    "detail_text": detail_text,
                                    "utime": datetime.now(),
                                    "text_xpath": xpath,
                                    'Bid_data_acquisition_format': 'html',
                                    'previewurl': detail_result['originalurl'],
                                    'two_lv_title': detail_result['title'],
                                    'type': '不良',
                                    "behavior_type": '行政处罚',
                                    "xpath_err": 0,
                                    "status": 2,
                                }}
                            ))
                        else:
                            self.guangdongshengshuiwuju.update_one({"_id": detail_result["_id"]
                                                                    }, {"$set": {
                                "status": 2,
                                "err_txt": "该数据为重复数据，无需上传截图",
                                "xpath_err": 1,
                                "html": "",
                            }})


                else:
                    self.guangdongshengshuiwuju.update_one({"_id": detail_result["_id"]}, {"$set": {
                        "status": 2,
                        "html": "",
                        "err_txt": "正文部分为空",
                        "xpath_err": 1,
                    }})
                if len(self.local.get_detail_consumer_list) >= 1:
                    try:
                        self.guangdongshengshuiwuju.bulk_write(self.local.get_detail_consumer_list)
                    except Exception as e:
                        self.m.error("更新失败%s" % len(self.local.get_detail_consumer_list), e)
                    else:
                        self.m.info("更新成功%s" % len(self.local.get_detail_consumer_list))
                    finally:
                        self.local.get_detail_consumer_list.clear()

    def add_detail_to_queue(self, flag=False):
        """
        添加需要更新的数据到队列中
        """
        filter_ = {'status': 1}
        update_ = {'$set': {'status': 0}}
        self.guangdongshengshuiwuju.update_many(filter_, update_)
        i = 0
        filter_ = {'status': 0, 'sourceplatform': '信用能源'}
        update_ = {'$set': {'status': 1, 'status_time': datetime.now()}}
        proj = {}
        while True:
            try:
                data = self.guangdongshengshuiwuju.find_one_and_update(filter_, update_, proj,
                                                                       return_document=ReturnDocument.AFTER)
                if not data:
                    self.m.info("%s:::获取标书详情的生产者结束", datetime.now())
                    break
                self.detail_queue.put(data)
                if flag:
                    break
            except Exception as err:
                self.m.error('%s:::获取标书详情从库中读取数据err info:%s' % (datetime.now(), err))
                i += 1
                time.sleep(3)
                if i >= 10:
                    break
        for i in range(self.thread_num):
            self.detail_queue.put(None)

    def add_menu_producer_queue(self, flag=False):
        """
        获取列表的生产者
        目录页添加数据到队列的方法
        """
        filter = {'status': {"$ne": 0}}
        update = {'$set': {'status': 0}}
        self.guangdongshengshuiwuju_param.update_many(filter, update)
        filter_ = {'status': 0}
        update_ = {'$set': {'status': 1}}
        proj = {}
        i = 0
        while True:
            try:
                data = self.guangdongshengshuiwuju_param.find_one_and_update(filter_, update_, proj,
                                                                             return_document=ReturnDocument.AFTER)
                if not data:
                    self.m.info("%s:::获取标书目录的生产者结束", datetime.now())
                    break
                self.params_queue.put(data)
                if flag:
                    break
            except Exception as err:
                self.m.error('%s:::获取标书目录从库中读取数据err info:%s' % (datetime.now(), err))
                i += 1
                time.sleep(1)
                if i >= 10:
                    break
        for i in range(self.thread_num):
            self.params_queue.put(None)

    def savemong(self):
        biaoming = ['a_luoyangggzy_detail', 'a_nanyangggzy_detail', 'a_zhoukouggzy_detail', 'a_sanmenxiaoggzy_detail', 'a_xuchangggzy_detail', 'a_zhengzhouhangkonggangggzy_detail', 'a_shangqiuggzy_detail', 'a_xinyangggzy_detail', 'a_xiangyangggzy_detail', 'a_huangshiggzy_detail', 'a_xiaoganggzy_detail', 'a_suizhouggzy_detail', 'a_shennongjiaggzy_detail', 'a_guangzhougonggongziyuanjiaoyiGGFWPT_detail', 'a_shandongshengshuiligongchengzhaobiaotoubiao_GGFWPT_detail', 'a_changsha_jiaoyipingtai_detail', 'a_zhuzhouggzy_detail', 'a_yueyangggzy_detail', 'a_chenzhouggzy_detail', 'a_yongzhouggzy_detail', 'a_huaihuashiggzy_detail', 'a_tianmenggzy_detail', 'a_zhongmouxianzfcg_detail', 'a_eqqzfcg_detail', 'a_yichuanggzy_detail', 'a_lsxzfcg_detail', 'a_yanshiggzy_detail', 'a_lkxzfcg_detail', 'a_hualongquggzy_detail', 'a_nanlexianggzy_detail', 'a_weidongggzy_detail', 'a_taiqianxianggzy_detail', 'a_yexianggzy_detail', 'a_scxzfcg_detail', 'a_gsxzfcg_detail', 'a_xiayiggzy_detail', 'a_mengjinggzy_detail', 'a_nlxzfcg_detail', 'a_baofengggzy_detail', 'a_songxianggzy_detail', 'a_xxzfcg_detail', 'a_huijiquggzy_detail', 'a_xinhuaggzy_detail', 'a_xxzfcg_detail', 'a_xinanggzy_detail', 'a_xmszfcg_detail', 'a_xzszfcg_detail', 'a_zcxzfcg_detail', 'a_luanchuanggzy_detail', 'a_liangyuanzfcg_detail', 'a_wuzhixianzfcg_detail', 'a_mqxzfcg_detail', 'a_ycszfcg_detail', 'a_ruzhoushiggzy_detail', 'a_ruyangggzy_detail', 'a_luoningggzy_detail', 'a_luolongggzy_detail', 'a_jianxiggzy_detail', 'a_qingfengxianggzy_detail', 'a_zhanheggzy_detail', 'a_hczfcg_detail', 'a_chanheggzy_detail', 'a_dengfengshizfcg_detail', 'a_sxzfcg_detail', 'a_syzfcg_detail', 'a_shilongggzy_detail', 'a_gcqzfcg_detail', 'a_wugangshiggzy_detail', 'a_xingyangshizfcg_detail', 'a_ycxzfcg_detail', 'a_jiaxianggzy_detail', 'a_jinshuiquggzy_detail', 'a_lushanxianggzy_detail', 'a_chqzfcg_detail', 'a_hyqzfcg_detail', 'a_boaixianggzy_detail', 'a_wenxianggzy_detail', 'a_mengzhoushirmzf_detail', 'a_wuzhixianggzy_detail', 'a_xiuwuxianggzy_detail', 'a_ruyangggzy1_detail', 'a_yichuanggzy1_detail', 'a_jianxiggzy1_detail', 'a_luolongrmzf_detail', 'a_mengjinggzy1_detail', 'a_yanshiggzy1_detail', 'a_lankaoxianggzy_detail', 'a_longtingrmzf_detail', 'a_glqzfcg_detail', 'a_zhongmouggzy_detail', 'a_xinmishiggzy_detail', 'a_dengfengggzy_detail', 'a_gongyishiggzy_detail', 'a_xingyangshiggzy_detail', 'a_xzsggzy_detail', 'a_ruzhouggzy_detail', 'a_xipingxianrmzf_detail', 'a_pingyurmzf_detail', 'a_runanrmzf_detail', 'a_guangshanggzy_detail', 'a_hbggzy_detail', 'a_lsggzy_detail', 'a_xixianggzy_detail', 'a_gusshiggzy_detail', 'a_scggzy_detail', 'a_huangchuanxianzfcg_detail', 'a_lyggzy_detail', 'a_yhggzy_detail', 'a_zlggzy_detail', 'a_suixianggzy_detail', 'a_tuochengggzy_detail', 'a_lyxggzy_detail', 'a_weihuiggzy_detail', 'a_huojiaggzy_detail', 'a_yuanyangggzy_detail', 'a_yanjinggzy_detail', 'a_fengqiuggzy_detail', 'zhongguoguojiazhaobiaowang_data', 'a_yancaozfcg_detail', 'a_gzyangguangcaigouggzy_detail', 'a_shennongjiarmzf_detail', 'a_enshishirmzf_detail', 'a_laifengxianrmzf_detail', 'a_xianfengxianrmzf_detail', 'a_jianshixianrmzf_detail', 'a_hanchuanshiggzy_detail', 'a_yingchengshiggzy_detail', 'a_yingchengshirmzf_detail', 'a_yunmengxianggzy_detail', 'a_dawuxianggzy_detail', 'a_xiaochangxianggzy_detail', 'a_dongbaoqurmzf_detail', 'a_huarongqurmzf_detail', 'a_liangzihurmzf_detail', 'a_yichengshiggzy_detail', 'a_zaoyangshirmzf_detail', 'a_laohekoushirmzf_detail', 'a_laohekoushiggzy_detail', 'a_baokangxianrmzf_detail', 'a_guchangxianggzy_detail', 'a_guchangxianrmzf_detail', 'a_nanzhangxianrmzf_detail', 'a_xiangzhouquggzy_detail', 'a_fanchengqurmzf_detail', 'a_huangzhouquzfcg_detail', 'a_luotianxianzfcg_detail', 'a_xishuixianggzy_detail', 'a_huangmeixianggzy_detail', 'a_huangmeixianzfcg_detail', 'a_machengshizfcg_detail', 'a_wuxueshiggzy_detail', 'a_wuxueshizfcg_detail', 'a_xiananquggzy_detail', 'a_jiayuxianggzy_detail', 'a_tongcehengxianggzy_detail', 'a_danjiangkourmzf_detail', 'a_xilingquggzy_detail', 'a_xilingqurmzf_detail', 'a_wujiagangquggzy_detail', 'a_dianjunquggzy_detail', 'a_xiaotingquggzy_detail', 'a_yilingquggzy_detail', 'a_yuananxianggzy_detail', 'a_xingshanxianggzy_detail', 'a_ziguixianggzy_detail', 'a_zhijiangshiggzy_detail', 'a_dangyangshiggzy_detail', 'a_changyangggzy_detail', 'a_jianglingxianggzy_detail', 'a_honghushiggzy_detail', 'a_songzishizfcg_detail', 'a_jingshanshizfcg_detail', 'a_zhongxiangshizfcg_detail', 'a_shayangxianzfcg_detail', 'a_duodaoquzfcg_detail', 'a_wuchangqurmzf_detail', 'a_hongshanqurmzf_detail', 'a_dongxihuqurmzf_detail', 'a_xinzhouqurmzf_detail', 'a_yangxinxianrmzf_detail', 'a_maojianqurmzf_detail', 'a_zhangwanqurmzf_detail', 'a_yunyangqurmzf_detail', 'a_yunxixianrmzf_detail', 'a_zhushanxianrmzf_detail', 'a_zhuxixianrmzf_detail', 'a_fangxianrmzf_detail', 'a_shijiazhuangggzy_detail', 'a_handanggzy_detail', 'a_qinhuangdaormzf_detail', 'a_xingtaiggzy_detail', 'a_xingtairmzf_detail', 'a_baodingggzy_detail', 'a_baodingrmzf_detail', 'a_chengdeggzy_detail', 'a_cangzhouspj_detail', 'a_hengshuiggzy_detail', 'a_fuyangrmzf_detail', 'a_bozhourmzf_detail', 'a_bozhouzjw_detail', 'a_suzhourmzf_detail', 'a_suzhouzjw_detail', 'a_bengburmzf_detail', 'a_huainanrmzf_detail', 'a_huaibeirmzf_detail', 'a_tonglingrmzf_detail', 'a_anqingrmzf_detail', 'a_anqingzjw_detail', 'a_huangshanzjw_detail', 'a_chuzhourmzf_detail', 'a_luanrmzf_detail', 'a_luanzjw_detail', 'a_chizhourmzf_detail', 'a_chizhouzjw_detail', 'a_jingdezhenggzy_detail', 'a_jianggzy_detail', 'a_jianshizfcg_detail', 'a_nanchangggzy_detail', 'a_jiujiangshizjw_detail', 'a_ganzhoushirmzf_detail', 'a_yichunshizjw_detail', 'a_haikoushiggzy_detail', 'a_haikoushizfcg_detail', 'a_sanyashizfcg_detail', 'a_danzhoushiggzy_detail', 'a_danzhoushizfcg_detail', 'maanshan_data', 'huaibei_data', 'a_changzhishirmzf_detail', 'a_yunchengshizjw_detail', 'a_datongggzy_detail', 'a_jinzhongggzy_detail', 'a_xinzhouggzy_detail', 'a_baotoshizfcg_detail', 'a_chifengshiggzy_detail', 'a_wulanchabushiggzy_detail', 'a_xinganmengggzy_detail', 'a_xianggzy_detail', 'a_xianrmzf_detail', 'a_baojiggzy_detail', 'a_xianyangggzy_detail', 'a_xianyangrmzf_detail', 'a_weinanggzy_detail', 'a_weinanrmzf_detail', 'a_yananggzy_detail', 'a_yulinggzy_detail', 'a_hanzhongggzy_detail', 'a_xixianxinquggzy_detail', 'a_zhengzhoushizfcg_detail', 'a_kaifengshizfcg_detail', 'a_pingdingshanshizfcg_detail', 'a_hebishizfcg_detail', 'a_jiaozuoshizfcg_detail', 'a_puyangshizfcg_detail', 'a_puyangshizjw_detail', 'a_luoheshizfcg_detail', 'a_luoheshirmzf_detail', 'a_zhumadianshizfcg_detail', 'a_nanyangshizfcg_detail', 'a_luoyangshizfcg_detail', 'a_xinyangshizfcg_detail', 'a_zhoukoushizfcg_detail', 'a_shangqiushizfcg_detail', 'a_sanmenxiashizfcg_detail', 'a_xuchangshizfcg_detail', 'a_xinxiangshizfcg_detail', 'a_xinxiangshizjw_detail', 'a_jiyuanshizfcg_detail', 'a_hangkonggangquzfcg_detail', 'a_anyangshizfcg_detail', 'a_btggzy_detail', 'a_zigongshizjw_detail', 'a_panzhihuashiggzy_detail', 'a_deyangshiggzy_detail', 'a_guangyuanshiggzy_detail', 'a_guangyuanshirmzf_detail', 'a_guangyuanshizjw_detail', 'a_suiningshiggzy_detail', 'a_yaanshiggzy_detail', 'a_yaanshizfcg_detail', 'a_yaanshizjw_detail', 'a_ziyangshirmzf_detail', 'a_ganmuzhouggzy_detail', 'a_lishuiggzy_detail', 'a_shaoxingggzy_detail', 'a_taizhouggzy_detail', 'a_jiaxingggzy_detail', 'a_dongyingrmzf_detail', 'a_weihaizjw_detail', 'a_zaozhuangggzy_detail', 'a_taggzy_detail', 'a_jinanzjw_detail', 'a_zbggzy_detail', 'a_wfggzy_detail', 'a_hzggzy_detail', 'a_hezezfcg_detail', 'a_qdggzy_detail', 'a_nanjingshizfcg_detail', 'a_suzhoushizfcg_detail', 'a_lianyungangshizfcg_detail', 'a_wuxiggzy_detail', 'a_wuxishizfcg_detail', 'a_yzggzy_detail', 'a_yangzhoushizfcg_detail', 'a_taizhouggzy_detail', 'a_haggzy_detail', 'a_huaianshizfcg_detail', 'a_suqianshizfcg_detail', 'a_nantongggzy_detail', 'a_nanningshiggzy_detail', 'a_beihaiggzy_detail', 'a_beihaishizfcg_detail', 'a_guigangggzy_detail', 'a_chongzuoggzy_detail', 'a_guangxiggzy_detail', 'a_guilinshiggzy_detail', 'a_wuzhoushiggzy_detail', 'a_fangchenggangshiggzy_detail', 'a_qinzhoushiggzy_detail', 'a_qinzhoushizfcg_detail', 'a_yulinshiggzy_detail', 'a_yulinshirmzf_detail', 'a_baiseshiggzy_detail', 'a_baiseshirmzf_detail', 'a_hezhoushiggzy_detail', 'a_hechishiggzy_detail', 'a_laibinggzy_detail', 'a_guangzhouzfcg_detail', 'a_shaoguanzjw_detail', 'a_zhuhaizjw_detail', 'a_foshanggzy_detail', 'a_dongguanggzy_detail', 'a_dongguanrmzf_detail', 'a_jiangmenggzy_detail', 'a_zhongshanggzy_detail', 'a_huizhouggzy_detail', 'a_huizhourmzf_detail', 'a_huizhouzjw_detail', 'a_meizhouggzy_detail', 'a_meizhourmzf_detail', 'a_guiyangshiggzy_detail', 'a_zunyishiggzy_detail', 'a_anshunshiggzy_detail', 'a_bijieshirmzf_detail', 'a_tongrenshirmzf_detail', 'a_qiandongnanggzy_detail', 'a_guyuanggzy_detail', 'a_guyuanrmzf_detail', 'a_zhongweirmzf_detail', 'a_xiningshiggzy_detail', 'a_haidongshiggzy_detail', 'a_huangnanzhouggzy_detail', 'a_haibeizhouggzy_detail', 'a_guoluozhouggzy_detail', 'a_haixizhouggzy_detail', 'a_yushuzhouggzy_detail', 'a_kelamayishiggzy_detail', 'a_tulufanggzy_detail', 'a_hamishiggzy_detail', 'a_changjihuizuggzy_detail', 'a_changjishizfcg_detail', 'a_bazhouggzy_detail', 'a_aletaiggzy_detail', 'a_bozhouggzy_detail', 'a_kezhouggzy_detail', 'a_kashíggzy_detail', 'a_hetiandiquzfcg_detail', 'a_cdggzy_detail', 'a_rikazespj_detail', 'a_kunmingzjw_detail', 'a_yuxirmzf_detail', 'a_zhaotongrmzf_detail', 'a_chuxiongrmzf_detail', 'a_dalizhourmzf_detail', 'a_henanzhaobiaocaigouzonghewang_detail', 'a_btggzy_detail', 'a_jilinggzy_detail', 'a_sipingggzy_detail', 'a_yanbianggzy_detail', 'a_songyuanggzy_detail', 'a_baichengggzy_detail', 'a_baishanggzy_detail', 'a_tonghuaggzy_detail', 'a_shenyangggzy_detail', 'a_anshanggzy_detail', 'a_benxiggzy_detail', 'a_dandongggzy_detail', 'a_dandongshizjw_detail', 'a_fuxinggzy_detail', 'a_liaoyangggzy_detail', 'a_tielingggzy_detail', 'a_huludaiggzy_detail', 'a_panjinshiggzy_detail', 'a_jinzhoushiggzy_detail', 'a_daqingggzy_detail', 'a_lanzhoushiggzy_detail', 'a_tianshuishiggzy_detail', 'a_longnanshiggzy_detail', 'a_linxiazhouggzy_detail', 'a_jingmenggzy_detail', 'a_zhonglvjituandianzizhaotoubiao_company_detail', 'a_hadianjituandianzishangwupingtai_company_detail', 'a_tianfuyangguangcaigou_company_detail', 'a_shanxiluqiaojituandianzishangwucaigoupingtai_company_detail', 'a_yangguangcaigoufuwupingtai_company_detail', 'a_zhongtongfugongyinglian_company_detail', 'a_huarunjituanshouzhengdianzi_company_detail', 'a_shanxijiaomeidianzizhaocaipingtai_company_detail', 'a_jinnengkongguzhaobiaocaigouwang_company_detail', 'a_tiejianyuncai_company_detail', 'a_baohuazhaobiaopingtaihuabeizhuanqu_company_detail', 'a_zhongguohaiyangshiyoujituan_company_detail', 'a_zhonghuashangwudianzizhaotoubiao_company_detail', 'a_zhonggangzhaobiao_company_detail', 'a_zhongguotongyongzhaobiaowang_company_detail', 'a_zhongguohuangjinjituanjianshe_company_detail', 'a_zhongguohuanengjituan_company_detail', 'a_zhongguohangkongyouliaojituan_company_detail', 'a_jihuajituandianzihuacaigoupingtai_company_detail', 'a_CECdianzicaigoupingtai_company_detail', 'a_zhongguoyizhongzhaobiaocaigoupingtai_company_detail', 'a_jizhongnengyuandianzijituanzhaobiaotoubiao_company_detail', 'a_zhongguohangfawangshangshangcheng_company_detail', 'a_dongfengzhaotoubiaojiaoyizhongxin_company_detail', 'a_neimengguzizhiquqiyeyangguangcaigou_company_detail', 'a_zhejiangnengyuanjituanzhihuigongyinglian_company_detail', 'a_zhongguohuaxuedianzizhaobiaotoubiao_company_detail', 'a_zhongjiguojidianzicaigoujiaoyipingtai_company_detail', 'a_baogangdianzicaigoujiaoyipingtai_company_detail', 'a_taikangbaoxianjituancaigou_company_detail', 'a_zhongguotaipingdianzihuacaigou_company_detail', 'a_yangguangbaoxianjituandianzicaigouwang_company_detail', 'a_yangguangcaigoufuwupingtai_1_company_detail', 'a_bayejituanjizhongcaigou_company_detail', 'a_hangkonggongyedianzicaigoupingtai_company_detail', 'a_beiqixinnengyuancaigouzhaobiaowang_company_detail', 'a_linggangjituandianzizhaobiaotoubiao_company_detail', 'a_henanjichangjituanzhaobiaocaigou_company_detail', 'a_zhengzhoumeikuangjixiejituan_company_detail', 'a_angangdianzizhaobiaowang_company_detail', 'a_fujianfuhaichuangshiyouhuagong_company_detail', 'a_zhongguorenminyinhangjizhongcaigou_company_detail', 'a_zhongguoyinlian_company_detail', 'a_zhongguoyinhang_company_detail', 'a_zhongguogongshangyinhang_company_detail', 'a_xiamenhangkongcaigougonggao_company_detail', 'a_zhongguohangkongjituanyouxiangongsi_company_detail', 'a_zhongguonanfanghangkongcaigou_company_detail', 'a_zhongliangangdiancaijicaipingtai_company_detail', 'a_shenzhenditiezhinengzhaocai_company_detail', 'a_nanjingditie_company_detail', 'a_guangzhouditiezhaobiaotoubiao_company_detail', 'a_zhengzhouditie_company_detail', 'a_zhongguoshihuadianzizhaobiaotoubiao_company_detail', 'a_qiankelianyangguangzhaobiaocaigou_company_detail', 'a_xianshizonggaishiyanqu_company_detail', 'a_zhongdiancaigoupingtai_company_detail', 'a_zhongkehenandianzijiaoyi_company_detail', 'a_guocaiquanliuchengdianzihuajiaoyi_company_detail', 'a_huajiedianzizhaobiaojiaoyi_company_detail', 'a_guangdongshengjidianshebeizhaobaiozhongxin_company_detail', 'a_youzhiyidianzizhaobaiocaigou_company_detail', 'a_yuncailianxianshangcaigouyitihuapingtai_company_detail', 'a_yuncaigongzhaotoubiao_company_detail', 'a_chengduguocaijiaoyizhongxin_company_detail', 'a_zhongguogongchengwuliyanjiusuo_company_detail', 'a_hebeidianzizhaobiaotoubiaojiaoyi_company_detail', 'a_zhongguokuangyonggongyepindianzijiaoyi_company_detail', 'a_yiqijidiancahnpinguojizhaobiao_company_detail', 'a_baogangdianzicaigoupingtai_company_detail', 'a_henanyuxinggzy_company_detail', 'a_yiguqingfengdianzizhaotoubiaojiaoyi_company_detail', 'a_zhongguoguodianjituan_company_detail', 'a_nanfangzhaobiaoyucaigoujiaoyi_company_detail', 'a_zhongguodianjianzhaobaioyucaigouwang_company_detail', 'a_beijingpaishuijituan_company_detail', 'a_zhongguohangfadianzizhaobiao_company_detail', 'a_lingangjituanzhaobiao_company_detail', 'a_shandongtieluzhaocai_company_detail', 'a_hangkonggongyedianzizhaotobiao_company_detail', 'a_zhongmeizhaobiaoyucaigouwang_company_detail', 'a_zhonglianzhaobiaowang_company_detail', 'a_huiyaungongsidianzizhaobiao_company_detail', 'a_zhongguohuangjiandianzizhaobiao_company_detail', 'a_heilongjiangzhengqizhaocai_company_detail', 'a_zhejiangjichangzhaobiao_company_detail', 'a_zhongguotietadianzicaigou_company_detail', 'a_helixinzhihuizhaotobiao_company_detail', 'a_zhongguoyiqijinkouzhaotobiao_company_detail', 'anhui_zhaobiaotoubiao', 'quanguo_neimenggu', 'quanguo_tianjin', 'quanguo_shanxi', 'zhejianggonggongziyuan', 'quanguo_heibeisheng', 'quanguo_jiangsusheng2', 'zhejiangzhengfucaigou', 'quanguo_beijing2', 'beijinggongcheng3', 'quanguo_hainan', 'lzl_zx_hunan_data', 'lzl_zx_data_hns', 'lzl_zx_datas', 'lzl_jiangxi_data', 'qghn_data', 'lzl_zx_qg_hbs_data', 'lzl_zx_shanghai_data', 'lzl_zx_shanghai_wyh_data', 'lzl_guangdong_wenhua_data', 'quanguo_shanxi_linfen', 'lzl_pingdingshan_publish_data', 'lzl_zx_zhejiang_qg_data', 'lzl_hengyang_publish_data', 'lzl_jinzhou_publish_data', 'lzl_enshi_publish_data', 'lzl_changde_publish_data', 'henanzhaotoubiao_data', 'Jiaozuoggzy_info', 'Luoheggzy_info', 'Zhumadianggzy_info', 'guangzhou', 'lzl_xiantao_publish_data', 'lzl_xiaogan_zhengwu_data', 'zzggzy_data', 'fujiangonggongziyuan', 'fujiangonggongdianzi_history2', 'fujiangonggongdianzi2', 'jilinzhengfucaigouwang_data', 'shanxi_caigou_data', 'hebeishengjiaotongyunshuting_data', 'yangguangcaigoufuwupingtai_data', 'neimengguzizhiquzhengfucaigou_data', 'guizhou_caigou_data', 'zyzsjgcg_data', 'bjzfcg_data', 'wjb_data', 'shzfcgw_data', 'chongqingshizhengfucaigouwang_data', 'tianjinshizhengfucaigouzhongxin_data', 'hunanzhengfucaigouwang_data', 'shandongshengzhengfucaigouwang_data', 'hainanshengzhengfucaigou_data', 'hebigongongziyuan_data', 'hebigongongziyuan_data', 'shenzhenggzy_data', 'gjnyzbw_data', 'jiangsushengshuiliting_data', 'shandongshenggonggongziyuanjiaoyizhongxin_data', 'hubeishengjiaotongyunshuting_data', 'jingmen_data', 'lzl_qg_shandong_data', 'heilongjiangzhengfucaigouwang_data', 'henanshengzhengfucaigouwang_data', 'jinanggzy_data', 'lasa_data', 'xuzhoushiggzy_data', 'suqianshizfcg_data', 'luotianxianggzy_data', 'machengshiggzy_data', 'qichunxianggzy_data', 'tuanfengxianggzy_data', 'yingshanxianggzy_data', 'quanguo_shanxi2', 'henandianzi', 'hebeizhaobiaotoubiao', 'ningxiacaigou', 'anhuigonggongziyuanjituan', 'lzl_chongqing_jiaoyijiandu_data', 'lzl_guizhou_publish_data_jl', 'lzl_qinghai_qg_data', 'lzl_shanxi_xindian_data', 'lzl_shanxi_jiaokong_data', 'lzl_shanxi_zhaocai_data', 'lzl_guo_e_data', 'shanxizhaobiaotoubiao', 'jiangxizhaobiaotoubiao', 'guangxizhufanghejianzhuzhaobiaotoubiao', 'liaoning_jianshe_gongcheng', 'liaoning_gongcheng_jianshe', 'heilongjiang', 'quanguo_shanxi_yuncheng', 'quanguo_shanxi_jincheng', 'shanghaijianshegongcheng', 'lzl_hainan_jiaotong_data', 'lzl_shanxi_yunshidai_data', 'lzl_xiangyang_publish_data', 'lzl_shiyan_publish_data', 'lzl_xianning_publish_data', 'lzl_qianjiangshi_publish_data', 'lzl_kaifengshi_publish_data', 'jilingonggongziyuan', 'lzl_yunnan_qg_data', 'lzl_ningxia_data', 'lzl_shanxi_zhuanxingzhonghegaige_data', 'quanguo_chongqing', 'quanguo_guizhou', 'quanguo_qinghai', 'sichuangonggongziyuanjiaoyiwang', 'quanguo_qinghaicaigou', 'liaoningzhengfucaigou', 'jiangsuzhaobiaotoubiao', 'lzl_xinjiang_qg_publish_data', 'a_shenzhenyangguangcaigoupingtai_company_detail', 'a_shenzhenwenhuaguangdianlvyoutiyuju_detail', 'a_hainanshengminzubowuguan_company_detail', 'a_chongqingshishuiliganghangjianshe_company_detail', 'a_luzhoujiaotoujituanluqiaojianshe_company_detail', 'a_wuhanshengtaihuanjingtouzifazhan_company_detail', 'a_liangshanjiaotoujituan_company_detail', 'a_mianyangjiaotongfazhanjituan_company_detail', 'a_yangzhoushihanjiangchengshijianshefazhan_company_detail', 'a_hunanlingangkaifatouzijituan_company_detail', 'a_jinanguidaojiaotongjituan_company_detail', 'a_bozhouwuhutouzikaifayouxianzeren_company_detail', 'a_shandongshengjichangguanliyantaiguojijichang_company_detail', 'a_ningboshuiwuhuanjingjituan_company_detail', 'a_yongzhouchengfajituan_company_detail', 'a_yunnanxindezhaobiaozixun_company_detail', 'a_beijingkejiyuanpaimaizhaobiao_company_detail', 'a_heilongjiangshengguolvzhaobiao_company_detail', 'a_jiangsujinshiyuanjiuyegufen_company_detail', 'a_hubeijiaotoujianshejituan_company_detail', 'a_guiyangshijiaotongtouzifazhan_company_detail', 'a_quzhoushiqutongjituan_company_detail', 'a_suqianshijiaotongchanyejituan_company_detail', 'a_guangdongshengtongxinchanyefuwu_company_detail', 'a_yanchengshichengzhenhuajianshetouzijituan_company_detail', 'a_ziyangchengjiantouzijituan_company_detail', 'a_shanxihuacaizhaobiao_company_detail', 'a_rugaogangwujituan_company_detail', 'a_zhongguozhongtiekegongjituan_company_detail', 'a_fujianshengqingshanzhiye_company_detail', 'a_yataiqinyegongchengzixun_company_detail', 'a_guangxikewenzhaobiao_company_detail', 'a_henanyuxinzhaobiao_company_detail', 'a_huangshishichengshifazhantouzi_company_detail', 'a_guangdongjiechengzhaobiaodaili_company_detail', 'a_henanzhaobiaocaigoufuwu_company_detail', 'a_jingyangongchengzixun_company_detail', 'a_jiangyinshichengzhixinshangwu_company_detail', 'a_shanxishengyancaozhuanmaiju_company_detail', 'a_chongqingguojitouzizixunjituan_company_detail', 'a_zhejiangshengdaishanpenglaijiaotongtouzijituan_company_detail', 'a_jiangsudonghetouzijituan_company_detail', 'a_zhejiangshangyejituan_company_detail', 'a_zhangzhouyuanxinjianshejituan_company_detail', 'a_yunnanshengjiaotongtouzijianshejituan_company_detail', 'a_zhejiangzhongguoqingfangrongchengjituan_company_detail', 'a_qinghaiyanhugongyegufenyouxiangongsi_company_detail', 'a_nanninglvgangjianshetouzijituan_company_detail', 'a_shanxizhongligongchengzixunyouxiangongsi_company_detail', 'a_guangdongzhongdezhaobiaoyouxiangongsi_company_detail', 'a_sichuanyuangenongyejituan_company_detail', 'a_yantailianhechanquanjiaoyifuwu_company_detail', 'a_zhongguojiancaijituanzhaocaipingtai_company_detail', 'a_shandongzhonghexiangmuzixun_company_detail', 'a_guangzhounanshazichanjingying_company_detail', 'a_guangxinongcuntouzijituan_company_detail', 'a_chengduyimintouzijituan_company_detail', 'a_hangzhoushijiaotonggongchengjituan_company_detail', 'a_mianyangshigonggongjiaotongjituan_company_detail', 'a_chongqingchengshijiaotongkaifa_company_detail', 'a_nantongshibaozhangfangjianshetouzi_company_detail', 'a_ningduxianchengshijianshe_company_detail', 'a_yichangjiaotonglvyouchanye_company_detail', 'a_jiangsushengzhaobiaozhongxin_company_detail', 'a_hubeihuanchuanguoyouziben_company_detail', 'a_shudaotouzijituan_company_detail', 'a_maanshanshixingmaxiangmuzixun_company_detail', 'a_zhongguoguangdiangansuwangluo_company_detail', 'a_lanzhouxinqukejiwenhualvyoujituan_company_detail', 'a_sichuanxieyinggongcheng_company_detail', 'a_anhuishengnongkenjituan_company_detail', 'a_shandongxinshijizhaobiao_company_detail', 'a_shandongshenggaosuyanghujituan_company_detail', 'a_jiangsurenhezhonghuigongcheng_company_detail', 'a_yanchengshijiaotongtouzikonggujituan_company_detail', 'a_zhongzhaokangtaixiangmuguanli_company_detail', 'a_zhongmeizhaobiaoyucaigouwang_company_detail', 'a_yongchengshichengshijianshejituan_company_detail', 'a_jiangsushengyanhaikaifajituan_company_detail', 'a_yanchengshengzhoujituan_company_detail', 'a_nanjinglishuichengjianjituan_company_detail', 'a_anhuishenggaosudichanjituan_company_detail', 'a_guangxibeibuwanguojigangwujituan_company_detail', 'a_taizhoushijiaotongtouzijituan_company_detail', 'a_donggaunshijiaotongtouzijituan_company_detail', 'a_fujianshengwujianjianshejituan_company_detail', 'a_xinjiangyousejinshugongyejituan_company_detail', 'a_guangxibeitouhuanbaoshuiwujituan_company_detail', 'a_kunmingnongyefazhantouzifazhan_company_detail', 'a_zhenjiangchengshijianshejituan_company_detail', 'a_zhuhaishuiwuhuanjingkonggujituan_company_detail', 'a_henanshengfazhanranqiyouxiangongsi_company_detail', 'a_guangxixinkailinguanlizixunyouxiangongsi_company_detail', 'a_jinhuashiwuchengquchengxiangjianshetouzijituan_company_detail', 'a_nanguangjituanyouxiangongsi_company_detail', 'a_shanxijiangongkonggujituan_company_detail', 'a_shanxiweituodianzizhaotoubiaofuwu_company_detail', 'a_shandongluzhenggongchengzixun_company_detail', 'a_suqianwenhualvyoufazhangongsi_company_detail', 'a_anhuianzhaogongchengjishuzixunfuwu_company_detail', 'a_dongguanshisongshanhukonggu_company_detail', 'a_xinyishihongsenzhaobiaodailiyouxiangongsi_company_detail', 'a_hefeishiguidaojiaotongjituan_company_detail', 'a_ningbowenlvjituan_company_detail', 'a_guangxitangyejituan_company_detail', 'a_guangxilvjiangongchengjituan_company_detail', 'a_hunanshengmeiyejituan_company_detail', 'a_guangdongqunshengzhaobiaodaili_company_detail', 'a_anhuishuilikaifayouxiangongsi_company_detail', 'a_enshilvyoujituanyouxiangongsi_company_detail', 'a_hefeixingtaijinrongkonggujituan_company_detail', 'a_ningbojiaotongtouzikongguyouxiangongsi_company_detail', 'a_shandongdongyuexiangmuguanliyouxiangongsi_company_detail', 'a_kunmingfazhantouzijitaunyouxiangongsi_company_detail', 'a_yangzhoushigonggongjiaotongjituan_company_detail', 'a_wuhanchengshijianshetouzikaifajituan_company_detail', 'a_fujianshengqingfangkonggu_company_detail', 'a_jingchuwenhuachanye_company_detail', 'a_zhengdapenganjianshe_company_detail', 'a_fuzhoushijianshefazhanjituan_company_detail', 'a_qinghaishenggongluqiaolianggongcheng_company_detail', 'a_wanjikonggujituan_company_detail', 'a_yunnanzhongyangongye_company_detail', 'a_yunnanrunyugongcheng_company_detail', 'a_sichuanluqiao_company_detail', 'a_shandongfazhantouzikonggujituan_company_detail', 'a_guangxizhongxinhengtaigongcheng_company_detail', 'a_wuhangehuajituan_company_detail', 'a_yaanshiguoyouzichanjingying_company_detail', 'a_xindadichan_company_detail', 'a_guodiankejihuanbaojituan_company_detail', 'a_guangdongcaimaojianshegongcheng_company_detail', 'a_hubeishengchengtaozhaobiao_company_detail', 'a_meitangongyehefeishejiyanjiuyuan_company_detail', 'a_xiningteshuganggufen_company_detail', 'a_chongqingyugaojianshezixun_company_detail', 'a_changshalushantouzikonggujituan_company_detail', 'a_zhejiangkexinlianhegongchengxiangmuguanli_company_detail', 'a_hefeigonglujianshejituan_company_detail', 'a_anhuishengpunongjituan_company_detail', 'a_wenzhoushichengfajituan_company_detail', 'a_sichuanshengzipingfukaifa_company_detail', 'a_zhongjianwujutumugongcheng_company_detail', 'a_huaibeishidongyujianshetouzijituan_company_detail', 'a_huaibeishijiantoukonggujituan_company_detail', 'a_rudongjinhengchengshitouzijituan_company_detail', 'a_kailuanjituanyouxianzerengongsi_company_detail', 'a_xinxiangshichuangxintouzi_company_detail', 'a_shanghaijichangjituanyouxiangongsi_company_detail', 'a_hunanshenggangwujituanyouxiangongsi_company_detail', 'a_shandongshuiwuzhaobiao_company_detail', 'a_zhejiangyuandagongchengziyun_company_detail', 'a_yunnanzhaobiaogufenyouxiangongsi_company_detail', 'a_ningxiajiancaijituangufenyouxiangongsi_company_detail', 'a_shedejiuyegufenyouxiangongsi_company_detail', 'a_xiamenshiwushicaigouyouxiangongsi_company_detail', 'a_yunnanzhongzihaiwaizixun_company_detail', 'a_beijingshouduguojijichang_company_detail', 'a_anhuishuianjianshejituan_company_detail', 'a_shanxihangkongchanyejituan_company_detail', 'a_jiangsushijixinchengtouzikonggu_company_detail', 'a_jiangsuzhongyangongye_company_detail', 'a_shenzhenwanquchengshijianshe_company_detail', 'a_hubeizhongchujianshegongcheng_company_detail', 'a_ningdeshiyouxinchanquanjiaoyi_company_detail', 'a_shanxigaokehuayedianzijituan_company_detail', 'a_rigangyingkouzhongban_company_detail', 'a_shenzhenshiyuefazhaobiao_company_detail', 'a_zhujiangtouzigufen_company_detail', 'a_xizangtianlugufen_company_detail', 'a_guiyangshuiwujituan_company_detail', 'a_dongguanshuiwujituan_company_detail', 'a_bozhoujiaotongtouzikonggujituan_company_detail', 'a_dahuajianshexiangmu_company_detail', 'a_dalitengpujianshegongchengzaojiazixun_company_detail', 'a_anhuiyanyekonggutouzijituan_company_detail', 'a_anhuimingchenggongchengzixun_company_detail', 'a_fuzhougangwujituan_company_detail', 'a_qingjianjituan_company_detail', 'a_nanningshijianchangjianshegongcheng_company_detail', 'a_sichuanshengjianzhushejiyanjiuyuan_company_detail', 'a_guangzhoushiguokezhaobiaodaili_company_detail', 'a_chenyigongchengxiangmuguanli_company_detail', 'a_zhilinzhaobiao_company_detail', 'a_jiangsushenghuacaizhaobiao_company_detail', 'a_henanshengweixinzhaobiao_company_detail', 'a_hubeishengchangtouchengzhenhuatouzi_company_detail', 'guangxiliuzhougangtiejituan_company_data', 'guojiakaifatouzijituan_company_data', 'mengniu_company_data', 'ningbochengjian_company_data', 'ningbokaifatouzijituan_company_data', 'xinjiangguanghuishiyetouzi_company_data', 'z_zhognguojiangxiguoji_company_data', 'z_zhongguoyiqidianzipingtai_company_data', 'z_zhongtiediyikanchashejiyuan_company_data', 'quanguo_sourceplatform_new', 'quanguo_sourceplatform_wx', 'quanguo_sourceplatform''quanguo_shanxi2', 'henandianzi', 'hebeizhaobiaotoubiao', 'ningxiacaigou', 'anhuigonggongziyuanjituan', 'lzl_chongqing_jiaoyijiandu_data', 'lzl_guizhou_publish_data_jl', 'lzl_qinghai_qg_data', 'lzl_shanxi_xindian_data', 'lzl_shanxi_jiaokong_data', 'lzl_shanxi_zhaocai_data', 'lzl_guo_e_data', 'shanxizhaobiaotoubiao', 'jiangxizhaobiaotoubiao', 'guangxizhufanghejianzhuzhaobiaotoubiao', 'liaoning_jianshe_gongcheng', 'liaoning_gongcheng_jianshe', 'heilongjiang', 'quanguo_shanxi_yuncheng', 'quanguo_shanxi_jincheng', 'shanghaijianshegongcheng', 'lzl_hainan_jiaotong_data', 'lzl_shanxi_yunshidai_data', 'lzl_xiangyang_publish_data', 'lzl_shiyan_publish_data', 'lzl_xianning_publish_data', 'lzl_qianjiangshi_publish_data', 'lzl_kaifengshi_publish_data', 'jilingonggongziyuan', 'lzl_yunnan_qg_data', 'lzl_ningxia_data', 'lzl_shanxi_zhuanxingzhonghegaige_data', 'quanguo_chongqing', 'quanguo_guizhou', 'quanguo_qinghai', 'sichuangonggongziyuanjiaoyiwang', 'quanguo_qinghaicaigou', 'liaoningzhengfucaigou', 'jiangsuzhaobiaotoubiao', 'lzl_xinjiang_qg_publish_data']

        len(biaoming)
        print(len(biaoming))
        for i in biaoming:
            collection = self.db_m1
            collection = collection[f'{i}']
            filter_ = {'ifbprogress': '中标公告'}
            update_ = {'$set': {'image_status': 0}}
            print(f'{i}:::::开始更新！！！！')
            collection.update_many(filter_, update_)
            print(f'{i}:::::更新完成！！！！')
            return print('结束结束！！！')

    def run_thread_list(self):
        # self.get_menu_producer_consumer()
        # self.thread_name_list = [
        #     self.add_detail_to_queue,  # 获取详情的生产者
        # ]
        # self.more_thread_name_list = [
        #     self.get_detail_consumer,  # 获取详情的消费者
        # ]
        self.savemong()


if __name__ == '__main__':
    # db_name = 'test_gu'
    db_name = 'liuzilong'
    # db_name = 'bendi'
    guangdongshengshuiwujuW = guangdongshengshuiwujuW(db_name)
    # guangdongshengshuiwujuW.get_params()
    guangdongshengshuiwujuW.proxy_flag = False
    guangdongshengshuiwujuW.run()
